NIELIT O Level Exam

If a=(1,2,3,4), a[1:-1] is _________

If a=(1,2,3,4), a[1:-1] is _________

यदि a = (1,2,3,4), एक [1: -1] _________ है

A. Error, tuple slicing doesn’t exist एरर,टप्पल स्लाइसिंग मौजूद नहीं है

B. [2,3]

C. (2,3,4)

D. (2,3)




Correct Answer is :

D. (2,3)



Explanation
Tuple slicing exists and a[1:-1] returns (2,3).
Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad